<?php

/*
 * Created on Feb 22, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<?php


class MyInit {

	/**
	 *
	 *
	 */
	function initiliaze() {
		$CI =& get_instance();
		$CI->load->model('Model_setting', 'model_setting');
		$CI->load->model('Model_country', 'model_country');

		$settings = $CI->model_setting->first_row();
		$ids = unserialize($settings['language_support']);
		$countries = $CI->model_country->find_by_ids($ids);
		//print_r($countries);
		$_SESSION[LANGUAGE_SUPPORT] = $countries;
		$_SESSION[SETTING] = $settings;
	}
}
?>